

import { SubMachineState } from "framework/FSM/SubMachineState";
 
/**
 * 孵化模块的层次状态机
 * */
/**
 Spawn 激活状态
 *
*/

export class HSM_PowerCreepActive<T extends IStateArg<PowerCreep>> extends SubMachineState<T>
{

    public getActions(arg:T):Action[]
    {
        // 生成OPS
       // global.Log.Info(`--------------HSM_PowerCreepActive ------------assert1`);
        if(arg.entity)
        {
            const power = arg.entity.powers[PWR_GENERATE_OPS];
            // // 没有生成OPS的技能同时
            if(power &&!power.cooldown)
            {
                arg.entity.usePower(PWR_GENERATE_OPS);
            }
        }
        return [];
    }
}
